/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import beans.Adresse;
import beans.Unternehmen;
import beans.Kreditinstitut;
import java.awt.Dimension;

/**
 *
 * @author Thomas
 */
public class LohnverrechnerDLG extends javax.swing.JFrame {

    /**
     * Creates new form BenutzerDLG
     */
    private LogIn_GUI instanz = null;
    private Unternehmen f;
    
    public LohnverrechnerDLG(LogIn_GUI aThis) {
        initComponents();
        this.setTitle("PersonalVerrechnung ADMIN");
        this.setSize(1000, 600);
        this.setMinimumSize(new Dimension(650, 350));
//        this.setResizable(false);
        this.setLocationRelativeTo(null);
        
        instanz = aThis;
        /*f = new Firma("Ing. Karl Berger OG", new Adresse("Meiselgasse 25","1090","Wien"),
                "(01) 3282930-0", "(01) 3282930-10", "office@kfzberger.at",
                "für den 9., 18., 19. Bezirk und Klosterneuburg, Nummer 07",
                "345/6758", "ATU 76301021", "0016901","Wiener Gebietskrankenkasse",
                    new Kreditinstitut("Bank für Wien und Niederösterreich",
                    "Liechtensteinstraße 23, 1090 Wien", "20214", "007-400000",
                    "(01) 443 1720", "(01) 443 1720-15")
                );
        
        this.showFirmenDaten();*/
        
    }
    //1.1 Allgemeine Stammdaten Name: Ing. Karl Berger OG
    //Adresse: Meiselgasse 25, 1090 Wien Telefon: (01) 3282930-0
    //Telefax: (01) 3282930-10 E-Mail: office@kfzberger.at
    //Finanzamt: für den 9., 18., 19. Bezirk und Klosterneuburg, Nummer 07
    //Steuernummer: 345/6758
    //UID-Nummer: ATU 76301021 DVR-Nummer: 0016901
    //Krankenkasse: Wiener Gebietskrankenkasse
    //Kreditinstitut 
    
//Kreditinstitut: Bank für Wien und Niederösterreich, Liechtensteinstraße 23, 1090 Wien,
    //BLZ: 20214, Kontonummer: 007-400000, Tel.: (01) 443 1720, Telefax: (01) 443 1720-15
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        epFirmenDaten = new javax.swing.JEditorPane();
        jPanel5 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jComboBox3 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jPanel4 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                onClose(evt);
            }
        });
        getContentPane().setLayout(new java.awt.GridLayout(1, 2));

        jPanel1.setLayout(new java.awt.BorderLayout());

        epFirmenDaten.setEditable(false);
        epFirmenDaten.setContentType("text/html"); // NOI18N
        epFirmenDaten.setFont(new java.awt.Font("Verdana", 0, 14)); // NOI18N
        jScrollPane1.setViewportView(epFirmenDaten);

        jPanel1.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        jPanel5.setLayout(new java.awt.GridLayout(1, 1));
        jPanel1.add(jPanel5, java.awt.BorderLayout.PAGE_END);

        getContentPane().add(jPanel1);

        jPanel2.setLayout(new java.awt.BorderLayout());

        jPanel3.setLayout(new java.awt.GridLayout(1, 0));

        jComboBox3.setFont(new java.awt.Font("Batang", 0, 18)); // NOI18N
        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Thomas Draxler", "Kevin Vodovnik", "Michael Wahlhütter", "Michael Ehrenreich" }));
        jComboBox3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox3ActionPerformed(evt);
            }
        });
        jPanel3.add(jComboBox3);

        jComboBox4.setFont(new java.awt.Font("Batang", 0, 18)); // NOI18N
        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" }));
        jPanel3.add(jComboBox4);

        jComboBox2.setFont(new java.awt.Font("Batang", 0, 18)); // NOI18N
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2010", "2011", "2012", "2013" }));
        jPanel3.add(jComboBox2);

        jPanel2.add(jPanel3, java.awt.BorderLayout.PAGE_START);

        jPanel4.setLayout(new java.awt.GridLayout(1, 0));

        jLabel1.setFont(new java.awt.Font("Batang", 0, 18)); // NOI18N
        jLabel1.setText("Auszahlung/Überweisung: ");
        jPanel4.add(jLabel1);

        jTextField1.setFont(new java.awt.Font("Batang", 0, 18)); // NOI18N
        jTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jTextField1.setText("€    935.46");
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        jPanel4.add(jTextField1);

        jPanel2.add(jPanel4, java.awt.BorderLayout.PAGE_END);

        jTextArea1.setEditable(false);
        jTextArea1.setColumns(20);
        jTextArea1.setFont(new java.awt.Font("Monospaced", 0, 18)); // NOI18N
        jTextArea1.setRows(5);
        jTextArea1.setText("Gehalt:   1970.60 €\n-SV:     - 358.65 €    -----> 1970.60*18.2%\n-------------------------------------------\nBMGL:     1442.55 €\n-LSt:    - 116.19 €\n-SE:     -  10.30 €\n-Akonto: - 550.00 €\n-----------------------------------------\nBetrag:    935.46 €\n");
        jScrollPane2.setViewportView(jTextArea1);

        jPanel2.add(jScrollPane2, java.awt.BorderLayout.CENTER);

        getContentPane().add(jPanel2);

        jMenu1.setText("Mitarbeiter");

        jMenuItem8.setText("Verrechnen");
        jMenu1.add(jMenuItem8);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Hilfe");
        jMenuBar1.add(jMenu2);

        jMenu3.setText("LogOut");
        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void onClose(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_onClose
        instanz.setVisible(true);
    }//GEN-LAST:event_onClose

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox3ActionPerformed

    public void showFirmenDaten()
    {
        /*String firmenDaten=(""
                    + "<html>"
                    + "<head>"
                    + "</head>"
                    + "<body bgcolor=\"blue\">"
                    + "<p color=\"#FF9933\" style=\"font-variant:normal; font-size:130%;\">" + f.getfName() + "</p>"
                    + "<span color=\"#FFFFFF\">&nbsp;&nbsp;" + f.getAdresse() + "</span>"
                    + "<br>"+"<br>"
                    + ""
                    + "<span color=\"#FFFFFF\">&nbsp;<i>Tel.: </i>" + f.getTelefon() 
                    + "&nbsp; / &nbsp;<i>FAX.:</i> "+f.getFax()+" </span>"
                    + "<br><span color=\"#FFFFFF\">&nbsp;<i>e-mail: </i>" + f.geteMail()+ "</span>"
                    + "<br>"
                    + "<span color=\"#FFFFFF\">Finanzamt </span>"
                    + "<span color=\"#FFFFFF\">" + f.getFinanzamt()+ "</span>"
                    + "<br><span color=\"#FFFFFF\">&nbsp;<i>SteuerNr.: </i>" + f.getSteuerNr() + "</span>"
                    + "<br>"
                    + "<span color=\"#FFFFFF\">&nbsp;<i>Krankenkasse: </i>" + f.getKrankenKasse()+ "</span>"
                    + "<br>"
                    + "<span color=\"#FFFFFF\"><i>Kreditinstitut:</i></span>"
                    + "<p color=\"#99FF00\" style=\"font-variant:normal; font-size:110%;\">" 
                    + f.getKreditInt().getKiName()+"</p>"
                    + "<span color=\"#FFFFFF\">&nbsp;&nbsp;" + f.getKreditInt().getAdresse() + "</span>"
                    + "<br>"+"<br>"
                    + "<span color=\"#FFFFFF\">&nbsp;<i>BLZ: </i>" + f.getKreditInt().getBankLZ() + "</span>"
                    + "<br><span color=\"#FFFFFF\">&nbsp;<i>KontoNr.: </i>" + f.getKreditInt().getKontoNr() + "</span>"
                    + "<br><span color=\"#FFFFFF\">&nbsp;<i>Tel.: </i>" + f.getKreditInt().getTelefon()
                    + "&nbsp; / &nbsp;<i>FAX.:</i> "+f.getKreditInt().getFax()+" </span>"
                    + ""
                    + "</body>"
                    + "</html>");
        
        epFirmenDaten.setText(firmenDaten);*/
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JEditorPane epFirmenDaten;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables
}
